<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>物业管理软件</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta name="description" content="Charisma, a fully featured, responsive, HTML5, Bootstrap admin template.">
	<meta name="author" content="Muhammad Usman">
    <#include "*/pubcss.ftl">
</head>

<body>
	<#include "*/top.ftl">
	<!-- topbar ends -->
	<div class="container-fluid">
		<div class="row-fluid">
			<#include "*/left.ftl">
			<div id="content" class="span10">
			<!-- content starts -->
			<div>
				<ul class="breadcrumb">
					<li>
						<a href="#">基础资料</a> <span class="divider">/</span>
					</li>
					<li>
						<a href="#">水电费管理</a> <span class="divider">/</span>
					</li>
					<li>
						<a href="#">水电费维护</a>
					</li>
				</ul>
			</div>
		    <form class="form-horizontal"  action="javascript:saveHydropower()">
		    <div class="row-fluid sortable">
				<button type="button" class="btn btn-primary" onclick="javascript:window.history.back();">返回</button>
		    </div>
			<div class="row-fluid sortable">		
				<div class="box span12">
					<div class="box-header well" data-original-title>
						<h2><i class="icon-user"></i>水电费信息</h2>
					</div>
					<div class="box-content">
						<div class="row-fluid">
							<div class="span6">
							   <fieldset>
								<div class="control-group form-horizontal">
								   <label class="control-label" for="focusedInput">小区名称</label>
									<div class="controls">
			
									      <input class="input-xlarge focused" id="hcode" name="hcode" type="hidden" value="${(hydropower.hcode)?if_exists}">
									      <input class="input-xlarge focused" id="cid" name="cid" type="hidden" value="${(community.cid)?if_exists}">
										  <input class="input-xlarge focused" id="cname" name="cname" disabled type="text" value="${(community.cname)?if_exists}">
									
									</div>
								</div>
								</fieldset> 
							</div>
                        </div>
						<div class="row-fluid">
							<div class="span12">
								<div class="control-group form-horizontal">
									<label class="control-label" for="focusedInput">说明</label>
									<div class="controls">
										<textarea class="" id="hcontent" rows="3" disabled>${(hydropower.content)?if_exists}</textarea>
									</div>
								</div>
							</div>
						</div>
						<table class="table table-bordered table-striped table-condensed" id="dynamictable">
							  <thead>
								  <tr>
									  <th>选择</th>
									  <th>序号</th>
									  <th>水电</th>
									  <th>指标最小值</th>
									  <th>指标最大值</th>
									  <th>单价</th>
								  </tr>
							  </thead>   
							  <tbody>
								<#assign index=1>
								<#list (hydropowerItems)?if_exists as h>
								<tr>
									<td><input type="checkbox" id="inlineCheckbox1" name="ckb" value="${index}"></td>
									<td id="index">${index}</td>
									<td class="center">
									   <#assign tidsign=(h.type.tid=='001')>
									   <select name='tid' disabled>
										  <option value='001' ${tidsign?string('selected','')}>水</option>
										  <option value='002' ${tidsign?string('','selected')}>电</option>
									   </select>
									</td>
									<td class="center">
										<input class="input-small focused" name="rmin" disabled type="text" value="${(h.rmin)?if_exists}">
									</td>
									<td class="center">
										<input class="input-small focused" name="rmax" disabled type="text" value="${(h.rmax)?if_exists}">
									</td>
									<td class="center">
										<input class="input-small focused" name="price" disabled type="text" value="${(h.price)?if_exists}">
									</td>
								</tr>
								<#assign index=index+1>
								</#list>
								
							  </tbody>
						</table>
                      </div> 
					</div>
				</div><!--/span-->
			
			</div><!--/row-->
		    </form>
       
			<!-- content ends -->
			</div><!--/#content.span10-->
		</div><!--/fluid-row-->

		
	</div><!--/.fluid-container-->

	
	<#include "*/infotemplate/alert.ftl">
    <#include "*/infotemplate/saveinfo.ftl">
	<#include "*/pubjs.ftl">
	<script src='${base}/script/base/hydropower_edit.js'></script>	
		
</body>
</html>
